package eu.orangeflash.webapis.wp
{
	public class Content
	{
		private var raw:RawStruct = new RawStruct();
		
		public function Content(rawStruct:RawStruct = null)
		{
			if(rawStruct != null)
			{
				raw = rawStruct;
			}
		}
		
		public function set title(value:String):void
		{
			raw.title = value;
		}
		public function get title():String
		{
			return raw.title;
		}
		
		public function set description(value:String):void
		{
			raw.description = value;
		}
		public function get description():String
		{
			return raw.description;
		}
		
		public function set dateCreated(value:Date):void
		{
			raw.dateCreated = value;
		}
		public function get dateCreated():Date
		{
			return raw.dateCreated;
		}
		
		public function set textMore(value:String):void
		{
			raw.mt_text_more = value;
		}
		public function get textMore():String
		{
			return raw.mt_text_more;
		}
		
		public function set categories(value:Array):void
		{
			if(raw.categories == null)
			{
				raw.categories = new Array();
			}
			raw.categories = value;
		}
		public function get categories():Array
		{
			if(raw.categories == null)
			{
				raw.categories = new Array();
			}
			return raw.categories;
		}
		
		internal function get rawStruct():Object
		{
			return raw;
		}
	}
}
/**
Notes: the struct content can contain the following standard keys: 
 * title, for the title of the entry; 
 * description, for the body of the entry; 
 * and dateCreated, to set the created-on date of the entry. 
 * In addition, Movable Type's implementation allows you to pass in values for five other keys: 
 * int mt_allow_comments, the value for the allow_comments field; 
 * 
 * int mt_allow_pings, the value for the allow_pings field; 
 * String mt_convert_breaks, the value for the convert_breaks field;
 * String mt_text_more, the value for the additional entry text; 
 * String mt_excerpt, the value for the excerpt field; 
 * String mt_keywords, the value for the keywords field; 
 * and array mt_tb_ping_urls, the list of TrackBack ping URLs for this entry. 
 * If specified, dateCreated should be in ISO.8601 format.
*/